package com.yj.suncity.collect.bean;

import org.json.JSONObject;

public class CollectNumBean {
	 private String success;//": "1",
	 private String msg;//": "获取信息成功",
	 private JSONObject data;//": {
	 private String id="";//": "654321",//用户ID
	 private String ent="0";//": "1",//收藏商家数
	 private String adv="0";//": "1",//收藏广告数
	 private String offer="0";//": "1",//收藏悬赏数
	 private String dhgoods="0";//": "1",//收藏兑换商品数
	 private String dgfoods="0";//": "1",//收藏抵购商品数
	 private String activity="0";//": "1" //收藏活动数
	 private String cityhelp="0";
	 private String goods = "0";
	public CollectNumBean(JSONObject json) {
		this.success = json.optString("success");
		this.msg = json.optString("msg");
		this.data = json.optJSONObject("data");
		if (data!=null) {
			this.id = data.optString("id");
			this.ent = data.optString("ent");
			this.adv = data.optString("adv");
			this.offer = data.optString("offer");
			this.dhgoods = data.optString("dhgoods");
			this.dgfoods = data.optString("dgfoods");
			this.activity = data.optString("activity");
			this.cityhelp=data.optString("cityhelp");
			this.goods=data.optString("goods");
		}
	}
	
	public String getGoods() {
		return goods;
	}

	public void setGoods(String goods) {
		this.goods = goods;
	}

	public String getCityhelp() {
		return cityhelp;
	}

	public String getSuccess() {
		return success;
	}
	public String getMsg() {
		return msg;
	}
	public JSONObject getData() {
		return data;
	}
	public String getId() {
		return id;
	}
	public String getEnt() {
		return ent;
	}
	public String getAdv() {
		return adv;
	}
	public String getOffer() {
		return offer;
	}
	public String getDhgoods() {
		return dhgoods;
	}
	public String getDgfoods() {
		return dgfoods;
	}
	public String getActivity() {
		return activity;
	}

}
